<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" href="CSS12_position.css">
    <title>CSS12布局定位</title>
</head>
<body>
    <div class="box">第一个盒子</div>
    <div class="box pos_static">静态定位</div>
    <div class="box pox_relative">相对定位</div>
    <div class="box">第二个盒子定位</div>
    <div class="box pos_absolute">绝对定位</div>
    <div class="box">第三个盒子定位</div>
    <div class="box parent_absolute">
        <p>绝对定位参考父容器</p>
        <div class="box pos_absolute">绝对定位参考父容器</div><!-- 二级菜单 -->   
    </div>
    <div class=" box pos_sticky">固定定位</div>
    <br><br><br><br>
    <br><br><br><br>
    <br><br><br><br>
    <br><br><br><br>

</body>
</html>